import {ref} from 'vue'
import {defineStore} from 'pinia'
import {getCategoryAPI} from "@/apis/Layout.js";

export const useCategoryStore = defineStore('category', () => {

    const categotyList = ref([])

    const getCategoryList = async () => {
        const res = await getCategoryAPI()
        categotyList.value = res.result
    }



    return {
        categotyList,
        getCategoryList
    }
})
